package cn.dnui_wnx725.dnuifood_16110100725.model;

import cn.dnui_wnx725.dnuifood_16110100725.bean.UserBean;
import cn.dnui_wnx725.dnuifood_16110100725.iface.LoginIface;
import cn.dnui_wnx725.dnuifood_16110100725.listener.TListener;
import cn.dnui_wnx725.dnuifood_16110100725.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class LoginModel extends RetrofitBaseModel implements LoginIface<UserBean> {
    Retrofit retrofit;
    Service service;

    public LoginModel(){
        retrofit = getRetrofit();
        service = getService();
    }

    @Override
    public void getLoginMessge(String username, String userpass, final TListener<UserBean> tListener) {
        Call<UserBean> call=service.getLogin(username,userpass);
        callenqueue(call,tListener);

    }
}

